// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.BarPointsFlowDao;
import com.liuxinlong.modules.entity.BarPointsFlow;
import com.liuxinlong.modules.mapper.BarPointsFlowMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年7月20日
 */
@Service
public class BarPointsFlowDaoImpl extends ServiceImpl<BarPointsFlowMapper, BarPointsFlow> implements BarPointsFlowDao {

    @Override
    public List<BarPointsFlow> pageBarPointsFlow(Map<String, Object> queryParam) {
        return baseMapper.pageBarPointsFlow(queryParam);
    }

    @Override
    public int getBarPointsFlowCount(Map<String, Object> queryParam) {
        return baseMapper.getBarPointsFlowCount(queryParam);
    }

    @Override
    public BarPointsFlow getSignFlow(String userId, String signDate) {
        return baseMapper.getSignFlow(userId,signDate);
    }

    @Override
    public List<BarPointsFlow> getPointFlow(Map<String, Object> queryParam) {
        return baseMapper.getPointFlow(queryParam);
    }

    @Override
    public void updateBatchPointsFlow(int sourceType, int targetPoints, String startTime, String endTime) {
        baseMapper.updateBatchPointsFlow(sourceType, targetPoints, startTime, endTime);
    }

    @Override
    public List<Map<String,Object>> getTopTen(String startTime) {
        return baseMapper.getTopTen(startTime);
    }
}
